<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <script
      src="{{ url_for('static', filename='mobile/js/utils/rem.js') }}"
      type="text/javascript"
      charset="utf-8"
    ></script>
    <link
      rel="stylesheet"
      href="{{ url_for('static', filename='mobile/css/base.css') }}"
    />
    <link
      rel="stylesheet"
      href="{{ url_for('static', filename='mobile/css/loading.css') }}"
    />
    <link
      rel="stylesheet"
      href="{{ url_for('static', filename='mobile/css/app.css') }}"
    />
    <link
      rel="stylesheet"
      href="{{ url_for('static', filename='mobile/css/backups.css') }}"
    />
    <title></title>
  </head>
  <body>
    <div class="backups">
      <div class="con">
        <div class="phone-header">
          <div class="phone-input-con">
            <input type="text" placeholder="search" class="phone-ass-input" />
            <a href="{{ url_for('auth.login') }}">
              <img
                class="signup"
                src="{{ url_for('static', filename='mobile/img/signup.svg') }}"
                alt=""
              />
            </a>
          </div>
        </div>
        <!-- <div class="header">
            <div class="h-left">
                <span class="h-logo">logo</span>
                <span class="h-school">xx school</span>
            </div>
            <div class="h-right">
                <input class="h-input" type="text" placeholder="search">
                <div class="h-center">
                    <p class="h">Hi, administrator</p>
                    <p class="h-1">welcome to xxxxxx school，keep good work</p>
                </div>
                <span class="h-pic">头像</span>
            </div>
        </div> -->
        <div class="ub l">
          <div class="ub_f1 l-list">
            <a href="{{ url_for('manage.professor') }}">professors</a>
          </div>
          <div class="ub_f1 l-list">
            <a href="{{ url_for('manage.student') }}">student</a>
          </div>
          <div class="ub_f1 l-list active">
            <a href="{{ url_for('manage.course') }}">course</a>
          </div>
        </div>
        <div class="p-c">
          {% for course in courses %}
          <a class="p-c-list" href="/course/lesson/{{ course.id }}">
            <div>
              <p class="pc-h">
                {% if course.online %}
                <span class="on-line">{{ status(course.online) }}</span>
                {% else %}
                <span class="off-line">{{ status(course.online) }}</span>
                {% endif %}
                <span class="pc-time">{{ formatDate(course.created_at) }}</span>
              </p>
              <p class="pc-title">{{ course.name }}</p>
              <p class="pc-con">{{ course.about }}</p>
            </div>
          </a>
          {% endfor %}
          <div class="p-c-list">
            <div class="new-course">
              <img
                src="{{ url_for('static', filename='img/001.svg') }}"
                alt=""
              />
              <p>New course</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
